<table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse; table-layout:fixed;word-wrap:break-word;" width="100%" class="table_common">
    <tr>
        <th rowspan="2">区域</th>
        <th rowspan="2">大区</th>
        <th rowspan="2">小区</th>
        <th rowspan="2">省份</th>
        <th rowspan="2">城市</th>
        <th rowspan="2">专营店</th>
        <th rowspan="2">专营店编码</th>
        <th rowspan="2">所属双月</th>
        <th rowspan="2">项目编号</th>
        <th rowspan="2">车展名称</th>
        <th rowspan="2">车展级别</th>
        <th rowspan="2">活动时间段</th>
        <th rowspan="2">场馆地址</th>
        <th colspan="10">车展场租费用</th>
        <th colspan="10">场馆配套费用</th>
    </tr>
    <tr>
    	<th>场租单价（元/㎡）</th>
    	<th>场租面积（日产+启辰）(㎡)</th>
    	<th>场租预计总额</th>
    	<th>场租实际总额</th>
    	<th>参展专营店（不含启辰店）</th>
    	<th>单个专营店场租出资上限</th>
    	<th>参展专营店实际出资总额</th>
    	<th>启辰店实际出资总额（结算）</th>
    	<th>RMP支持场租费用（结算）</th>
        <th>结算审核结果</th>
    	<th>流水号</th>
    	<th>类型</th>
    	<th>费用项目描述</th>
        <th>费用使用时间段</th>
        <th>预算申请费用</th>
        <th>预算审核结果</th>
        <th>预算审核费用</th>
        <th>结算申请费用</th>
        <th>结算审核结果</th>
        <th>结算审核费用</th>
    </tr>
    <?php
    foreach($projectIds as $projectId){
    ?>
    <?php
    if(isset($rentGroupList[$projectId])){
        foreach($rentGroupList[$projectId] as $v){
            $projectData = isset($projectList[$v['projectId']]) ? $projectList[$v['projectId']] : array();
            $procData = isset($procList[$projectData['procId']]) ? $procList[$projectData['procId']] : array();
            $storeData = isset($allStoreList[$procData['storeId']]) ? $allStoreList[$procData['storeId']] : array();
    ?>
    <tr>
        <td><?=$storeData['area'];?></td>
        <td><?=$storeData['region'];?></td>
        <td><?=$storeData['spsarea'];?></td>
        <td><?=$storeData['province'];?></td>
        <td><?=$storeData['city'];?></td>
        <td><?=$storeData['storeName'];?></td>
        <td><?=$storeData['coding'];?></td>
        <td><?=$procData['timeUnitStr'];?></td>
        <td><?=$projectData['id'];?></td>
        <td><?=$projectData['name'];?></td>
        <td><?=$projectData['levelStr'];?></td>
        <td><?=$projectData['startTime']?>到<?=$projectData['endTime']?></td>
        <td><?=$projectData['address']?></td>
        <td><?=$v['unitPrice']?></td>
        <td><?=$v['areaSize']?></td>
        <td><?=$v['budgetApply']?></td>
        <td><?=$v['settleApply']?></td>
        <td><?=$v['storeNum']?></td>
        <td><?=$v['oneStorePrice']?></td>
        <td><?=$v['settleStoreTotal']?></td>
        <td><?=$v['settleQiTotal']?></td>
        <td><?=$v['settleRmpSupport']?></td>
        <td><?=$v['settleAuditStr']?></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
    </tr>
    <?php }}?>
    <?php
    if(isset($matchingGroupList[$projectId])){
        foreach($matchingGroupList[$projectId] as $v){
            $projectData = isset($projectList[$v['projectId']]) ? $projectList[$v['projectId']] : array();
            $procData = isset($procList[$projectData['procId']]) ? $procList[$projectData['procId']] : array();
            $storeData = isset($allStoreList[$procData['storeId']]) ? $allStoreList[$procData['storeId']] : array();
    ?>
    <tr>
        <td><?=$storeData['area'];?></td>
        <td><?=$storeData['region'];?></td>
        <td><?=$storeData['spsarea'];?></td>
        <td><?=$storeData['province'];?></td>
        <td><?=$storeData['city'];?></td>
        <td><?=$storeData['storeName'];?></td>
        <td><?=$storeData['coding'];?></td>
        <td><?=$procData['timeUnitStr'];?></td>
        <td><?=$projectData['id'];?></td>
        <td><?=$projectData['name'];?></td>
        <td><?=$projectData['levelStr'];?></td>
        <td><?=$projectData['startTime']?>到<?=$projectData['endTime']?></td>
        <td><?=$projectData['address']?></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td><?=$v['id']?></td>
        <td><?=$v['typeStr']?></td>
        <td><?=$v['descTypeStr']?></td>
        <td><?=$v['startTime']?>到<?=$v['endTime']?></td>
        <td><?=$v['budgetApply']?></td>
        <td><?=$v['budgetAuditStr']?></td>
        <td><?=$v['budgetAudit']?></td>
        <td><?=$v['settleApply']?></td>
        <td><?=$v['settleAuditStr']?></td>
        <td><?=$v['settleAudit']?></td>
    </tr>
    <?php }}?>
    <?php }?>
</table>